.class Lcom/waiqin365/lightapp/visit/dl;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 8

    const v7, 0x7f080557

    const v6, 0x7f080237

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    invoke-interface {v0, p3}, Landroid/widget/ListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v2, v0, Lcom/waiqin365/lightapp/visit/b/ag;

    if-eqz v2, :cond_1

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/ag;

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/b/ag;->b:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/CalendarView;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/view/CalendarView;->c()Lcom/waiqin365/base/calendar/c/a;

    move-result-object v3

    iget v3, v3, Lcom/waiqin365/base/calendar/c/a;->d:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-virtual {v3, v7}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/CalendarView;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/view/CalendarView;->c()Lcom/waiqin365/base/calendar/c/a;

    move-result-object v3

    iget-object v3, v3, Lcom/waiqin365/base/calendar/c/a;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-virtual {v3, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    const v4, 0x7f08064f

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Landroid/content/Intent;

    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Landroid/content/Context;

    move-result-object v4

    const-class v5, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-direct {v3, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v4, "isSub"

    const/4 v5, 0x1

    invoke-virtual {v3, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v4, "title"

    invoke-virtual {v3, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "userId"

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/ag;->a:Ljava/lang/String;

    invoke-virtual {v3, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "username"

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/ag;->b:Ljava/lang/String;

    invoke-virtual {v3, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "plandate"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/CalendarView;

    move-result-object v5

    invoke-virtual {v5}, Lcom/waiqin365/lightapp/view/CalendarView;->c()Lcom/waiqin365/base/calendar/c/a;

    move-result-object v5

    iget v5, v5, Lcom/waiqin365/base/calendar/c/a;->d:I

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-virtual {v5, v7}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/CalendarView;

    move-result-object v5

    invoke-virtual {v5}, Lcom/waiqin365/lightapp/view/CalendarView;->c()Lcom/waiqin365/base/calendar/c/a;

    move-result-object v5

    iget-object v5, v5, Lcom/waiqin365/base/calendar/c/a;->a:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-virtual {v5, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "date"

    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "pos"

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v3, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4, v1}, Ljava/util/ArrayList;-><init>(I)V

    move v2, v1

    :goto_0
    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/b/ag;->c:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/b/ag;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/visit/b/w;

    new-instance v5, Lcom/waiqin365/lightapp/visit/b/bd;

    invoke-direct {v5}, Lcom/waiqin365/lightapp/visit/b/bd;-><init>()V

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->a:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    iget-object v6, v0, Lcom/waiqin365/lightapp/visit/b/ag;->a:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->g:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->b:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->k:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->c:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->l:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->d:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->j:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->e:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->f:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->g:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->f:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->h:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->P:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->i:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->j:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->k:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->p:Ljava/lang/String;

    iget-object v6, v1, Lcom/waiqin365/lightapp/visit/b/w;->l:Ljava/lang/String;

    iput-object v6, v5, Lcom/waiqin365/lightapp/visit/b/bd;->U:Ljava/lang/String;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/w;->m:Ljava/lang/String;

    iput-object v1, v5, Lcom/waiqin365/lightapp/visit/b/bd;->W:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_0

    :cond_0
    const-string/jumbo v0, "list"

    invoke-virtual {v3, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    const/16 v1, 0xca

    invoke-virtual {v0, v3, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/dl;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->overridePendingTransition(II)V

    :cond_1
    return-void
.end method
